import java.util.Scanner;
/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86186
 * Date: 2023-10-11
 * Time: 22:13
 */
public class Test2 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        // 注意 hasNext 和 hasNextLine 的区别
        String pw = in.next();
        int len = pw.length();
        int ret = 0;
        if (len <= 4) ret += 5;
        else if (len >= 5 && len <= 7) ret += 10;
        else ret += 25;
        int flg1 = 0, count1 = 0, count2 = 0;
        int flg2 = 0, count3 = 0;
        int flg3 = 0, count4 = 0;
        int flg4 = 0;
        for (int i = 0; i < pw.length(); i++) {
            char ch = pw.charAt(i);
            if (Character.isUpperCase(ch)) count1++;
            if (Character.isLowerCase(ch)) count2++;
            if (Character.isDigit(ch)) count3++;
            if (!Character.isLetter(ch) && !Character.isDigit(ch) && !Character.isSpaceChar(ch)) count4++;
        }

        if ((count1 != 0 && count2 == 0) || (count1 == 0 && count2 != 0)) ret += 10;
        else if (count1 != 0 && count2 != 0) ret += 20;
        if (count3 == 1) ret += 10;
        else if(count3 > 1) ret += 20;
        if (count4 == 1) ret += 10;
        else if (count4 > 1) ret += 25;
        if (count1 != 0 && count2 != 0 && count3 != 0 && count4 != 0) ret += 5;
        else if ((count1 != 0 || count2 != 0) && count3 != 0 && count4 != 0) ret += 3;
        else if ((count1 != 0 || count2 != 0) && count3 != 0) ret += 2;
        if (ret >= 90) System.out.println("VERY_SECURE");
        else if (ret >= 80) System.out.println("SECURE");
        else if (ret >= 70) System.out.println("VERY_STRONG");
        else if (ret >= 60) System.out.println("STRONG");
        else if (ret >= 50) System.out.println("AVERAGE");
        else if (ret >= 25) System.out.println("WEAK");
        else System.out.println("VERY_WEAK");
    }
}
